<?php
	
class Table_Admin extends Zend_Db_Table_Abstract
{
    protected $_name    = 'login';
    protected $_primary = array('LOGIN');
    protected $_sequence = true; //la table a un autoincrément
	
	public function connexionOK($login, $pass) {
			$req=$this
			->select()
			->from($this, '*')
			->where('LOGIN = ?', $login)
			->where('PASSWD = ?', sha1($pass));
			return $this->fetchRow($req);
	}
	
}	
?>